package com.comm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;


@Data
@TableName("t_guest")
public class TGuest implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "g_id", type = IdType.AUTO)
    private Integer gId;

    private String gName;

    private String gPassword;

    private String gPhone;

    private String sex;

    /**
     * 1,在线2，离线
     */
    private Integer gState;

  @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private LocalDate createtime;

    private LocalDate updatetime;

    private String avatar;
}
